﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.Model.Models.Purchase
{
    /// <summary>
    /// 供应商分拣记录表
    /// </summary> 
    [SugarTable("oms_srm_sorting_record")]
    public class SrmSortingRecordDao : RootEntity
    {
        public SrmSortingRecordDao()
        {
            Status = 1;
            CreateTime = DateTime.Now;
            UpdateTime = DateTime.Now;
        }
        /// <summary>
        /// 采购订单体fID
        /// </summary>
        public int FID { get; set; }
        /// <summary>
        /// 分拣数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string OrderId { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        public string CustomerCode { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public int SupplierId { get; set; }
        /// <summary>
        /// 供应商编号
        /// </summary>
        public string SupplierCode { get; set; }
        /// <summary>
        /// 存货id
        /// </summary>
        public long SkuId { get; set; }
        /// <summary>
        /// 存货编码
        /// </summary>

        public string SkuCode { get; set; }
        /// <summary>
        /// 销售ID(销售订单表体FID)
        /// </summary>
        public int OrderDetailId { get; set; }
        /// <summary>
        /// 分拣标识 1分拣完成，2缺货
        /// </summary>

        public int Flag { get; set; }
        /// <summary>
        /// 包裹数（打印标签的数量）
        /// </summary>
        public int PackQty { get; set; }
        /// <summary>
        /// 包裹号
        /// </summary>
        public int PackNum { get; set; }
        /// <summary>
        /// 数据状态 0：删除 1：新增
        /// </summary>
        public int Status { get; set; }

        public long CreateUser { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime? UpdateTime { get; set; } = DateTime.Now;

        public long UpdateUser { get; set; }
        public DateTime? UploadDate { get; set; } 
    }
}
